<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<jsp:useBean id="LO" class="com.fann.LessonOpen" scope="session"></jsp:useBean>

<%
String action = request.getParameter("acttype");
String nName;
if (action.equals("lessonOpenAdd")){
	LO.setId(0);
	LO.setLo_id("");
	LO.setLo_name("");
	LO.setLo_lecturer("");
	LO.setLo_description("");
	LO.setLo_objectives("");
	
	LO.setLo_outline("");
	LO.setLo_hours(0);
	LO.setLo_textbooks("");
	LO.setLo_Sdate("");
	LO.setLo_Edate("");
	LO.setLo_cost(0);
	
	nName = "新增";
} else {
	nName = "修改";
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><%=nName %>課程</title>
</head>
<body>

<form action="LessonOpenController" method="post">
<br/>
<input type="hidden" id="acttype" name="acttype" value="<%=action %>" />
<input type="hidden" id="acttype" name="id" value="${LO.id }" />
<table align="center">
	<tr>
		<td align="right">開課編號:</td>
		<td><input type="text" id="lo_id" name="lo_id" value="${LO.lo_id }" />
			<img style="Display:none">
		</td>
	</tr>
	<tr>
		<td align="right">課程名稱:</td>
		<td>
			<input type="text" id="lo_name" name="lo_name" value="${LO.lo_name }" />
		</td>
	</tr>
	<tr>
		<td align="right" nowrap="nowrap">授課時段_起:</td>
		<td>
			<input type="text" id="lo_Sdate" name="lo_Sdate" value="${LO.lo_Sdate }" />
		</td>
	</tr>
	<tr>
		<td align="right">授課時段_迄:</td>
		<td>
			<input type="text" id="lo_Edate" name="lo_Edate" value="${LO.lo_Edate }" />
		</td>
	</tr>
	<tr>
		<td align="right">開課講師:</td>
		<td>
			<input type="text" id="lo_lecturer" name="lo_lecturer" value="${LO.lo_lecturer }" />
		</td>
	</tr>
	<tr>
		<td align="right">課程簡介:</td>
		<td>
			<input type="text" id="lo_description" name="lo_description" value="${LO.lo_description }" />
		</td>
	</tr>
	<tr>
		<td align="right">學習目標:</td>
		<td>
			<input type="text" id="lo_outline" name="lo_objectives" value="${LO.lo_objectives }" />
		</td>
	</tr>
	<tr>
		<td align="right">課程大綱:</td>
		<td>
			<textarea id="cr_location" name="lo_outline" rows="4" cols="50">${LO.lo_outline }</textarea>
		</td>
	</tr>
	<tr>
		<td align="right">課程時數:</td>
		<td>
			<input type="text" id="lo_hours" name="lo_hours" value="${LO.lo_hours }" />
		</td>
	</tr>
	<tr>
		<td align="right">課程教材:</td>
		<td>
			<textarea id="lo_textbooks" name="lo_textbooks" rows="4" cols="50">${LO.lo_textbooks }</textarea>
		</td>
	</tr>
	<tr>
		<td align="right">課程費用:</td>
		<td>
			<input type="text" id="lo_cost" name="lo_cost" value="${LO.lo_cost }" />
		</td>
	</tr>
	<tr>
		<td align="center" colspan="2">
			<input type="submit" value="<%=nName %>課程"/>
		</td>
	</tr>
</table>
</form>

</body>
</html>